﻿using System;
using System.Windows.Data;
namespace Skyper.Data {
	public class TimeConverter : IValueConverter {
		#region Public
		public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
			if (value is DateTime) {
				return ((DateTime)value).ToShortTimeString();
			}
			return value;
		}
		public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
			throw new NotImplementedException();
		}
		#endregion
	}
}
